package jp.dip.ysato.excitewidget;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {

	private static final String DBNAME = "accounts";
	private static final String CREATETABLE = 
			"CREATE TABLE account (" +
			"rowid integer primary key autoincrement, " +
			"user text not null, " +
			"password text not null);";

	public DBHelper(Context context) {
		super(context, DBNAME , null, 1);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub
		db.execSQL(CREATETABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub

	}

}
